package Day1Zuoye;

import java.util.*;

public class MapTest1 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        Map<String,String> map=new HashMap<>();
        map.put("猫","cat");
        map.put("鼠","mouse");
        map.put("狗","dog");
        map.put("鸟","bird");
        map.put("蛇","snake");
        Set<String> set=map.keySet();
        Iterator<String> iterator=set.iterator();
        System.out.println("输入汉字");
        while (iterator.hasNext()){
            String key=input.next();
            String value=map.get(key);
            System.out.println(key+"="+value);
            break;
        }
        System.out.println("没有");

        System.out.println("输入单词");

    }
}
